using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Collections;
using System.Collections.Generic;
namespace Kunlun.Models
{
      public class Question
      {
         [Key]  
         [DisplayName(" ")] 
         public int ID { get; set; }
         [Required(ErrorMessage = "咨询用户不能空")]  
         [DisplayName("咨询用户")] 
         public int Uid { get; set; }
         [Required(ErrorMessage = "咨询标题不能空")]  
         [DisplayName("咨询标题")] 
         public string Title { get; set; }
         [DisplayName("咨询内容")] 
         public string Description { get; set; }
         [Required(ErrorMessage = "咨询时间不能空")]  
         [DisplayName("咨询时间")] 
         public DateTime BeginDate { get; set; }
         [DisplayName("回复时间")] 
         public DateTime rdate { get; set; }
         [DisplayName("回复人")] 
         public string rname { get; set; }
         [DisplayName("是否显示")] 
         public int status { get; set; }
         [DisplayName("有用")] 
         public int Inyes { get; set; }
         [DisplayName("没用")] 
         public int Inno { get; set; }
         [Required(ErrorMessage = "link to product table不能空")]  
         [DisplayName("link to product table")] 
         public string Pid { get; set; }
         } 
} 
